dm: pci: Fix scanning multi-function device
authorBin Meng <[email protected]>
Fri, 3 Aug 2018 08:14:37 +0000 (01:14 -0700)
committerSimon Glass <[email protected]>
Wed, 8 Aug 2018 11:49:31 +0000 (12:49 +0100)
commit64e45f73bd0aa9d8a1069587540bc91fe45b62e0
treee9b7ee1f7d291255ec57a77cf03a9f635df158a5
parent1f6b08b969b345a83b63f481e50555536d89854f
dm: pci: Fix scanning multi-function device

The flag to control whether to scan multi-function device during
enumeration should be cleared at the beginning of each iteration
if the device's function number equals to zero.

Signed-off-by: Bin Meng <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
drivers/pci/pci-uclass.c